using System.Windows;
using System.Windows.Markup;
using Common;

namespace MainView.Windows
{
	public partial class FastWindow : Window, IComponentConnector
	{
		public FastWindow()
		{
			InitializeComponent();
			spT1.Value = ConfigHide.GetInstance().OverTemperature;
			spT2.Value = ConfigHide.GetInstance().ArriveThreshold;
		}

		private void btnOK_Click(object sender, RoutedEventArgs e)
		{
			ConfigHide.GetInstance().SaveFast(spT1.Value, spT2.Value);
			base.DialogResult = true;
			Close();
		}
	}
}
